<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFsUserHasImTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('fs_user_has_ims', function (Blueprint $table) {
            $table->increments('id');
            $table->string('wx')->nullable()->comment('微信号');
            $table->integer('fs_user_id')->comment('会员id');
            $table->tinyInteger('level_id',false,true)->nullable()->comment('会员等级id');
            $table->integer('phone_num',false,true)->default(0)->comment('电话回访次数');
            $table->integer('sms_num',false,true)->default(0)->comment('短信发送次数');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('fs_user_has_ims');
    }
}
